package p270jp.pxv.android.viewholder;

import android.view.View;
import p270jp.pxv.android.R;
import p270jp.pxv.android.legacy.model.PixivIllust;
import p270jp.pxv.android.view.DetailCaptionAndTagsView;
import p270jp.pxv.android.viewholder.CalcHeightViewHolder;

/* renamed from: jp.pxv.android.viewholder.DetailCaptionViewHolder */
/* loaded from: classes2.dex */
public class DetailCaptionViewHolder extends CalcHeightViewHolder {
    private DetailCaptionAndTagsView detailCaptionAndTagsView;

    /* renamed from: jp.pxv.android.viewholder.DetailCaptionViewHolder$CaptionItem */
    /* loaded from: classes2.dex */
    public static class CaptionItem extends CalcHeightViewHolder.CalcHeightItem {
        private PixivIllust illust;

        public CaptionItem(PixivIllust pixivIllust) {
            this.illust = pixivIllust;
        }

        public PixivIllust getIllust() {
            return this.illust;
        }
    }

    public DetailCaptionViewHolder(View view) {
        super(view);
        this.detailCaptionAndTagsView = (DetailCaptionAndTagsView) view.findViewById(R.id.detail_caption_and_tags_view);
    }

    public static int getLayoutRes() {
        return R.layout.view_detail_caption;
    }

    @Override // p270jp.pxv.android.viewholder.BaseViewHolder
    public void bind(Object obj) {
        super.bind(obj);
        CaptionItem captionItem = (CaptionItem) obj;
        DetailCaptionAndTagsView detailCaptionAndTagsView = this.detailCaptionAndTagsView;
        detailCaptionAndTagsView.f19481a.f22019s.setVisibility(8);
        detailCaptionAndTagsView.f19481a.f22021u.setVisibility(8);
        this.detailCaptionAndTagsView.setIllust(captionItem.getIllust());
        postCalcViewHeight(captionItem);
    }
}
